/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package trefliq.EJB.webservice;

import javax.ejb.EJB;
import javax.jws.WebService;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import trefliq.EJB.entities.Credit;
import trefliq.EJB.entities.Movie;
import trefliq.EJB.entities.ShowBizPeople;
import trefliq.EJB.sessionbeans.MovieCreditBean;

/**
 *
 * @author Adam Gojdas
 */
//@WebService(serviceName = "MovieCreditWebService")
@Stateless()
public class MovieCreditWebService {
    @EJB
    private MovieCreditBean ejbRef;// Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Web Service Operation")

    @WebMethod(operationName = "CreateMovieCredit")
    public boolean CreateMovieCredit(@WebParam(name = "movie") Movie movie, @WebParam(name = "showbizpeople") ShowBizPeople showbizpeople, @WebParam(name = "genre") Credit credit) {
        return ejbRef.CreateMovieCredit(movie, showbizpeople, credit);
    }

    @WebMethod(operationName = "DeleteMovieCredit")
    public boolean DeleteMovieCredit(@WebParam(name = "movie") Movie movie, @WebParam(name = "showbizpeople") ShowBizPeople showbizpeople, @WebParam(name = "genre") Credit credit) {
        return ejbRef.DeleteMovieCredit(movie, showbizpeople, credit);
    }
    
}
